package com.rybbaby.tss.front.tssStudent.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @description 客户详情视图表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午2:48:34
 */
@Entity
@Table(name = "view_student_details")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewStudentDetails implements Serializable {


	private static final long serialVersionUID = -5634466537904101609L;
	/** 主键 **/
	private String id;
	/** 会员编码**/
	private String number;
	/** 客户姓名 **/
	private String name;
	/** 性别 **/
	private Integer sex;
	/** 联系电话 **/
	private String contactPhone;
	/** 会员类型 **/
	private String type;
	/**所属顾问*/
	private String realName;
	/**缴费总额*/
	private Double sumAmount;
	/**退费总额*/
	private Double refundAmout;
	/**合计*/
	private Double total;




	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "view_student_detailsIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "view_student_detailsIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}

	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "number", nullable= false, length = 32)
	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	@Column(name = "name", nullable= false, length = 32)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "sex", nullable= false, length = 32)
	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	@Column(name = "contactPhone", nullable= false, length = 32)
	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	@Column(name = "type", nullable= false, length = 32)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "realName", nullable= false, length = 32)
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	@Column(name = "sumAmount", nullable= false, length = 32)
	public Double getSumAmount() {
		return sumAmount;
	}

	public void setSumAmount(Double sumAmount) {
		this.sumAmount = sumAmount;
	}

	@Column(name = "refundAmout", nullable= false, length = 32)
	public Double getRefundAmout() {
		return refundAmout;
	}

	public void setRefundAmout(Double refundAmout) {
		this.refundAmout = refundAmout;
	}

	@Transient
	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

}